let statisticsApp = new Vue({
    el: '#statisticsApp',
    data: {
        statistics: {answer:23,question:0,collect:4,task:7,nickName:'王克晶'}
    },
    methods:{
        loadstatistics:function () {
            $.ajax({
               url:'/api/v1/questions/statistics',
                success:function (json) {
                    statisticsApp.statistics= json.data;
                }
            });
        }
    },
    created:function () {
        this.loadstatistics();
    }
});